package com.lai.gulimall.member.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.lai.common.exception.RRException;
import com.lai.common.to.SocialUserDto;
import com.lai.common.utils.PageUtils;
import com.lai.gulimall.member.dto.MemberLoginDto;
import com.lai.gulimall.member.dto.MemberRegisterDto;
import com.lai.gulimall.member.entity.MemberEntity;

import java.util.Map;

/**
 * 会员
 *
 * @author laiciqi
 * @email 602469238@qq.com
 * @date 2021-11-07 12:13:51
 */
public interface MemberService extends IService<MemberEntity> {

    PageUtils queryPage(Map<String, Object> params);

    void register(MemberRegisterDto memberRegisterDto);

    void checkUsernameUnique(String username) throws RRException;

    void checkPhoneUnique(String phone) throws RRException;

    MemberEntity login(MemberLoginDto memberLoginDto);

    MemberEntity oauth2Login(SocialUserDto socialUserDto);

}

